<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>EOS.IO: contracts/test_api/test_api.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ae9b15dd87e066e1908bbd90e8f38627.html">contracts</a></li><li class="navelem"><a class="el" href="dir_4512a307eab2a9ca08d8433965f51830.html">test_api</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a>  </div>
  <div class="headertitle">
<div class="title">test_api.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="test__api_8hpp__dep__incl.png" border="0" usemap="#contracts_2test__api_2test__api_8hppdep" alt=""/></div>
<map name="contracts_2test__api_2test__api_8hppdep" id="contracts_2test__api_2test__api_8hppdep">
<area shape="rect" id="node2" href="test__api_8cpp.html" title="contracts/test_api\l/test_api.cpp" alt="" coords="557,184,683,225"/>
<area shape="rect" id="node3" href="test__chain_8cpp.html" title="contracts/test_api\l/test_chain.cpp" alt="" coords="27,95,154,136"/>
<area shape="rect" id="node4" href="test__crypto_8cpp.html" title="contracts/test_api\l/test_crypto.cpp" alt="" coords="178,95,305,136"/>
<area shape="rect" id="node5" href="test__db_8cpp.html" title="contracts/test_api\l/test_db.cpp" alt="" coords="329,95,455,136"/>
<area shape="rect" id="node6" href="test__math_8cpp.html" title="contracts/test_api\l/test_math.cpp" alt="" coords="479,95,606,136"/>
<area shape="rect" id="node7" href="test__message_8cpp.html" title="contracts/test_api\l/test_message.cpp" alt="" coords="631,95,764,136"/>
<area shape="rect" id="node8" href="test__print_8cpp.html" title="contracts/test_api\l/test_print.cpp" alt="" coords="789,95,915,136"/>
<area shape="rect" id="node9" href="test__string_8cpp.html" title="contracts/test_api\l/test_string.cpp" alt="" coords="939,95,1066,136"/>
<area shape="rect" id="node10" href="test__transaction_8cpp.html" title="contracts/test_api\l/test_transaction.cpp" alt="" coords="1091,95,1235,136"/>
<area shape="rect" id="node11" href="test__types_8cpp.html" title="contracts/test_api\l/test_types.cpp" alt="" coords="1259,95,1386,136"/>
</map>
</div>
</div>
<p><a href="test__api_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdummy__message.html">dummy_message</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structu128__msg.html">u128_msg</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__types.html">test_types</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__print.html">test_print</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__message.html">test_message</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__math.html">test_math</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__db.html">test_db</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__crypto.html">test_crypto</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__transaction.html">test_transaction</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__chain.html">test_chain</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtest__string.html">test_string</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a983cc68cb9433ae18c8f4989483fabba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#a983cc68cb9433ae18c8f4989483fabba">WASM_TEST_ERROR_CODE</a>&#160;&#160;&#160;*((unsigned int *)((1&lt;&lt;16) - 2*sizeof(unsigned int)))</td></tr>
<tr class="separator:a983cc68cb9433ae18c8f4989483fabba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af339529156efa6e07c2dabf284a8287f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#af339529156efa6e07c2dabf284a8287f">WASM_TEST_ERROR_MESSAGE</a>&#160;&#160;&#160;*((unsigned int *)((1&lt;&lt;16) - 1*sizeof(unsigned int)))</td></tr>
<tr class="separator:af339529156efa6e07c2dabf284a8287f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1bd429404fdcba8cecd5d63cf71d590"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#ae1bd429404fdcba8cecd5d63cf71d590">WASM_TEST_FAIL</a>&#160;&#160;&#160;0xDEADBEEF</td></tr>
<tr class="separator:ae1bd429404fdcba8cecd5d63cf71d590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ef7aa5de5b842c4a4f166cfd825495d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#a0ef7aa5de5b842c4a4f166cfd825495d">WASM_TEST_PASS</a>&#160;&#160;&#160;0xB0CABACA</td></tr>
<tr class="separator:a0ef7aa5de5b842c4a4f166cfd825495d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae81ef2e949de0dcfdccf6a7df7e3114d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#ae81ef2e949de0dcfdccf6a7df7e3114d">WASM_ASSERT</a>(m,  message)&#160;&#160;&#160;if(!(m)) { <a class="el" href="test__api_8hpp.html#af339529156efa6e07c2dabf284a8287f">WASM_TEST_ERROR_MESSAGE</a>=(unsigned int)message; return <a class="el" href="test__api_8hpp.html#ae1bd429404fdcba8cecd5d63cf71d590">WASM_TEST_FAIL</a>; }</td></tr>
<tr class="separator:ae81ef2e949de0dcfdccf6a7df7e3114d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8741fa467f356e73d52f63521612abe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#ac8741fa467f356e73d52f63521612abe">WASM_TEST_HANDLER</a>(CLASS,  METHOD)</td></tr>
<tr class="separator:ac8741fa467f356e73d52f63521612abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e433756dd4c8a2f61db21799a2f64a4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#a5e433756dd4c8a2f61db21799a2f64a4">DUMMY_MESSAGE_DEFAULT_A</a>&#160;&#160;&#160;0x45</td></tr>
<tr class="separator:a5e433756dd4c8a2f61db21799a2f64a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac57a64f6d53bebcbdaa9f8f012022047"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#ac57a64f6d53bebcbdaa9f8f012022047">DUMMY_MESSAGE_DEFAULT_B</a>&#160;&#160;&#160;0xab11cd1244556677</td></tr>
<tr class="separator:ac57a64f6d53bebcbdaa9f8f012022047"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a700d88c2445988c3928fa65cfb33e51f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#a700d88c2445988c3928fa65cfb33e51f">DUMMY_MESSAGE_DEFAULT_C</a>&#160;&#160;&#160;0x7451ae12</td></tr>
<tr class="separator:a700d88c2445988c3928fa65cfb33e51f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ad758b7a5c3f18ed79d2fcd23d9f16357"><td class="memItemLeft" align="right" valign="top">typedef unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#ad758b7a5c3f18ed79d2fcd23d9f16357">u64</a></td></tr>
<tr class="separator:ad758b7a5c3f18ed79d2fcd23d9f16357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10e94b422ef0c20dcdec20d31a1f5049"><td class="memItemLeft" align="right" valign="top">typedef unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="test__api_8hpp.html#a10e94b422ef0c20dcdec20d31a1f5049">u32</a></td></tr>
<tr class="separator:a10e94b422ef0c20dcdec20d31a1f5049"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section copyright"><dt>Copyright</dt><dd>defined in eos/LICENSE.txt </dd></dl>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a5e433756dd4c8a2f61db21799a2f64a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DUMMY_MESSAGE_DEFAULT_A&#160;&#160;&#160;0x45</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac57a64f6d53bebcbdaa9f8f012022047"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DUMMY_MESSAGE_DEFAULT_B&#160;&#160;&#160;0xab11cd1244556677</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a700d88c2445988c3928fa65cfb33e51f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DUMMY_MESSAGE_DEFAULT_C&#160;&#160;&#160;0x7451ae12</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae81ef2e949de0dcfdccf6a7df7e3114d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_ASSERT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">m, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">message&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;if(!(m)) { <a class="el" href="test__api_8hpp.html#af339529156efa6e07c2dabf284a8287f">WASM_TEST_ERROR_MESSAGE</a>=(unsigned int)message; return <a class="el" href="test__api_8hpp.html#ae1bd429404fdcba8cecd5d63cf71d590">WASM_TEST_FAIL</a>; }</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a983cc68cb9433ae18c8f4989483fabba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_TEST_ERROR_CODE&#160;&#160;&#160;*((unsigned int *)((1&lt;&lt;16) - 2*sizeof(unsigned int)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af339529156efa6e07c2dabf284a8287f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_TEST_ERROR_MESSAGE&#160;&#160;&#160;*((unsigned int *)((1&lt;&lt;16) - 1*sizeof(unsigned int)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ae1bd429404fdcba8cecd5d63cf71d590"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_TEST_FAIL&#160;&#160;&#160;0xDEADBEEF</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac8741fa467f356e73d52f63521612abe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_TEST_HANDLER</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">CLASS, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">METHOD&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span>( action == WASM_TEST_ACTION(#CLASS, #METHOD) ) { <a class="code" href="test__api_8hpp.html#a983cc68cb9433ae18c8f4989483fabba">\</a></div><div class="line"><a class="code" href="test__api_8hpp.html#a983cc68cb9433ae18c8f4989483fabba">     WASM_TEST_ERROR_CODE</a> = CLASS::METHOD(); \</div><div class="line">     return; \</div><div class="line">  }</div><div class="ttc" id="test__api_8hpp_html_a983cc68cb9433ae18c8f4989483fabba"><div class="ttname"><a href="test__api_8hpp.html#a983cc68cb9433ae18c8f4989483fabba">WASM_TEST_ERROR_CODE</a></div><div class="ttdeci">#define WASM_TEST_ERROR_CODE</div><div class="ttdef"><b>Definition:</b> test_api.hpp:7</div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0ef7aa5de5b842c4a4f166cfd825495d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WASM_TEST_PASS&#160;&#160;&#160;0xB0CABACA</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a10e94b422ef0c20dcdec20d31a1f5049"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned int <a class="el" href="test__api_8hpp.html#a10e94b422ef0c20dcdec20d31a1f5049">u32</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad758b7a5c3f18ed79d2fcd23d9f16357"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef unsigned long long <a class="el" href="test__api_8hpp.html#ad758b7a5c3f18ed79d2fcd23d9f16357">u64</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
